package com.atguigu.gmall.activity;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 *
 * @author 10270
 * @author 10270
 */
@SpringBootApplication
/**
 该注解表示让注册中心（Nacos）发现该服务

*/

@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.atguigu.gmall")
@ComponentScan(basePackages = "com.atguigu.gmall")
public class ServiceActivityApplication {

    public static void main(String[] args) {

        SpringApplication.run(ServiceActivityApplication.class,args);
    }

}
